Since NoteTab 4.8, you can create your own Clip functions, using an approach that is similar to the ^!Clip command. Custom Clip functions must not have the same name as a predefined function. The function name corresponds to the name of the Clip that contains the code. You can create functions that take one parameter or none. You can access the parameter data in your function script by using the ^& code. Your function script must assign the result to the new ^!Result command, or by using the new predefined variable %Result%. Example:
H="Double"
^!IfTrue ^$IsNumber("^&")$ Multiply
^!Result ^&^&
^!Goto End
:Multiply
^!Result ^$Calc(^& * 2)$
H="TestDouble"
^!Prompt ^$Double(^?[Enter a number or some text])$
Note that Clips using custom functions cannot be run from the Clipbar.
For more information about using ^& in clips refer to Notetab Clip Basics, and the ^!Clip and ^InsertText Commands.